//
//  PanoWBColor+Ext.swift
//  TTService
//
//  Created by Toj on 3/15/21.
//

import Foundation
import PanoRtc

extension PanoWBColor {
    
    public static var white: PanoWBColor {
        return color(r: 1, g: 1, b: 1)
    }
    
    public static var black: PanoWBColor {
        return color(r: 0, g: 0, b: 0)
    }
    
    private static func color(r: Float32, g: Float32, b: Float32, a: Float32 = 1) -> PanoWBColor {
        let color = PanoWBColor()
        color.red = r
        color.green = g
        color.blue = b
        color.alpha = a
        return color
    }
}
